package com.lanou.service.impl;

import com.lanou.bean.City;
import com.lanou.mapper.CityMapper;
import com.lanou.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService{

    @Autowired
    private CityMapper cityMapper;

    @Override
    public List<City> findAllCityByProvinceId(Integer provinceid) {
        return cityMapper.findAllCityByProvinceId(provinceid);
    }

    @Override
    public String selectCityByC(Integer cityId) {
        return cityMapper.selectCityByC(cityId);
    }
}
